body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

* {
  box-sizing: border-box;
}

.ant-layout {
  min-height: 100vh;
}

.ant-layout-header {
  background: #001529;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ant-layout-content {
  padding: 32px;
  background: #fff;
  margin: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.ant-layout-content:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ant-layout-sider {
  background: #fff;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 4px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}

.logo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  margin: 0;
}

.page-description {
  color: #8c8c8c;
  margin-top: 8px;
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: #e6f7ff;
}

.graph-container {
  width: 100%;
  height: 600px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  background: #fafafa;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.error-container {
  text-align: center;
  padding: 40px;
  color: #ff4d4f;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

.upload-area {
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-area:hover {
  border-color: #1890ff;
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f8ff 100%);
  transform: scale(1.01);
}

.progress-container {
  margin: 24px 0;
}

.step-container {
  margin: 24px 0;
}

.result-container {
  margin-top: 24px;
  padding: 16px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-section {
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.table-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* 全屏模式样式 */
#network-container:fullscreen {
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#network-container:-webkit-full-screen {
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#network-container:-moz-full-screen {
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#network-container:-ms-fullscreen {
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 全屏模式下的画布样式 */
#network-container:fullscreen canvas,
#network-container:-webkit-full-screen canvas,
#network-container:-moz-full-screen canvas,
#network-container:-ms-fullscreen canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .ant-layout-content {
    margin: 16px;
    padding: 16px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .toolbar {
    flex-direction: column;
  }
}